import maya.cmds as cmds

def export_shader_network(save_path):
    all_engine_list = cmds.ls(type='shadingEngine')
    default_engine_list = ['initialShadingGroup', 'initialParticleSE']
    result_engine_list = list(set(all_engine_list).difference(set(default_engine_list)))
    cmds.select(cl=1)
    cmds.select(result_engine_list, noExpand=True, replace=True)
    cmds.file(save_path, exportSelected=True, type='mayaAscii', force=True)
    
def restor_shader(sg_node, obj_list):
    pmel.sets(sg_node, forceElement=obj_list)#face_list)